package main;

import calcstate.CalcStrategy;

public class CalcManager {
    private CalcStrategy calcStrategy;

    public CalcManager(CalcStrategy calcStrategy) {
        super();
        this.calcStrategy = calcStrategy;
    }

    public CalcStrategy getCalcStrategy() {
        return calcStrategy;
    }

    public void setCalcStrategy(CalcStrategy calcStrategy) {
        this.calcStrategy = calcStrategy;
    }

    public double getCalcResult(double num1, double num2) {
        return calcStrategy.getCalcResult(num1, num2);
    }
}
